home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
bds.zip
/
BDS.DOC
< prev
Wrap
Text File
|
1986-07-24
|
14KB
|
288 lines
A AUTO < , > Place current line in center of page
C CLS < . > List current program line
D DELETE < - > List previous program line
E EDIT < + > List next program line
L LIST <PgUp> List previous page of lines
L" LOAD" <PgDn> List next page of lines
M MERGE <Ctrl><PgUp> List first page of lines
P LLIST <Ctrl><PgDn> List last page of lines
S" SAVE
U Un-NEW Single Step Trace Commands
SYSTEM TROFF disable SST
SYSTEM TRON [LINE] [lineno] enable SST
COMPRESS UNCOMPRESS
H [RL,NC,LB,LR,LT,SD,SP,RV] I [E L D I T]
Where: Where:
RL Remove Lines E Expanded option
NC No Combination L Line Indentation
LB Leave Blanks D DATA item seperation
LR Leave Remarks I Indent loop suppress
LT Leave Type chars T Type char suppress
SD Shorten and Display
SP Shorten and Print
RV Remove Variables
VARIABLE DUMP
V . List all variables to the screen
V , List all variables to the printer
V .vn List variables to the screen in ascending order,
starting with the specified variable
V ,vn List variables to the screen in ascending order,
starting with the specified variables
V .vn,vn[,vn,]... List the specified variables to the screen
V ,vn,vn[,vn,]... List the specified variables to the printer
V vn[,vn,]... List the specified variable(s) to the screen
V Repeat the previous V command
SUPER RENUM
R [newline] [,[increment] [,[startline] [,endline]]]
Renumber and/or relocate a block of program lines
R I [newline] [,[increment] [,[startline] [,endlling]]]
Duplicate a block of program lines
R U
Scan program for unidenfined lines
VARIABLE/LINE NUMBER/NUMERIC CONSTANT CROSS-REFERENCE
X . List all references to the screen
X , List all references to the printer
X .ppppp List all references starting with ppppp to the screen
X ,ppppp List all references starting with ppppp to the printer
X ppppp List all references to ppppp to the screen
X List to the screen the 'next' program line which
contains a reference to the last X ppppp command
STRING/KEYWORD CROSS-REFERENCE
F .REM List program lines containing REM to the screen
F ,REM List program lines containing REM to the printer
F . List all keyword references to the screen
F , List all keyword references to the printer
F ."kw List keyword references to the screen in ascending
sequence starting with kw
F ,"kw List keyword references to the screen in ascending
sequence starting with kw
F ."ss" List string references to the screen in ascending
sequence starting with ss
F ,"ss" List string references to the screen in ascending
sequence starting with ss
F "kw List references to kw to the screen
F "ss" List string references which CONTAIN ss to the screen
F "kw1+kw2 List references in which kw1 and kw2 appear in the
program line to the screen
F "kw1,kw2 List references to kw1 to the screen and REPLACE
each occurrence of kw1 with kw2
F List the 'next' program line containing a reference to
the last F "kw or F "ss" command
COMPRESS
~~~~~~~~
This module reduces the size of the resident program to an absolute
minimum for optimal execution under the BASIC interpreter. Programs which
have been so compressed typically occupy 30 to 40% less memory space, and
run 7 to 10% faster.
The compression is accomplished through the fillowing actions:
1) Remove remarks.
2) Remove unneccessary blanks.
3) Remove extraneous colons.
4) Remove quotation marks at the end of a line, unless the quote is
required to retain a trailing blank.
5) Remove the LET keyword.
6) Remove the GOTO keyword in the sequences THEN GOTO and ELSE GOTO.
7) Remove variable type declaration characters ($,%,!,#) when a
previous DEFINT, DEFSTR, DEFSNG, or DEFDBL statement makes
such explicit typing redundant.
8) Merge separate lines into single multiple-statement lines.
9) Remove any non-executable program lines, i.e. unreferenced lines
which follow GOTO,RETURN or END statements.
10) Remove variable names from NEXT statements.
11) Automatically shorten variable names.
Items 3 and 4 are not optional, but the remaining actions are controlled by
parameter. The default state for items 9,10,and 11 is OFF, while the
default for all other items is ON.
For item 7 to function correctly, the DEFxxx (where xxx = INT,STR,SNG,or DBL)
statements must appear in a physical order corresponding to there logical
order. If DEFxxx statements appear in subroutines which are referenced by
GOSUB statements, those lines which appear in the program physically before
the DEFxxx statements will be treated as if the DEFxxx statement was not in
effect. Therefore, in order to take maximum advantage of this feature, the
DEFxxx statements should be at or near the beginning of the program.
Although item 10 normally saves a few bytes, the primary opjective in removing
the variable names from NEXT statements is to improve the performance of the
program. Our benchmark tests show that FOR/NEXT loops execute up to 25%
faster with the variable names ommitted.
Compress is invoked with the H command, optionally followed by one or more
parameters to tailor the compression to your specific requirements.
Mutiple parameters must be separated by commas.
The parameters are:(The envelope please)
RL Remove Lines (#9). Non-executable lines are removed.
NC No Combination (#8). Seprate lines are not merged into multiple-statement
lines. Inhibits removal of non-executable program lines (#9), even if
the RL parameter is specified.
LB Leave Blanks (#2). Blanks are not removed. This also disables removal
of LET (#5) and GOTO (#6) keywords. Under certain circumstances, a
very few blanks may be removed, even with this option set.
LR Leave Remarks (#1). Remarks are not removed.
LT Leave Typing characters (#7). Variable type declaration characters
are not removed.
SD Shorten and Display (#11). Specifies that you want to shorten variable
names and sent the new/old variable nave list to the Display.
Variable names which are already less than four(4) characters in
length are not shortened. The new variable names will be two or three
characters long and will retain the same first letter as the old
variable name.
SP Shorten and Print (#11). Specifies that you want to shorten variable
names and send the new/old variable name list to the Printer.
When using this parameter, a printer fault such as out-of-paper or
printer off-line will terminate the compress